<?php

namespace app\shop\validate;

use think\Validate;

class UserFavoriteValidate extends Validate
{
    protected $rule = [
        'goods_id' => 'require',
    ];

    protected $message = [
        'goods_id.require' => '缺少商品ID',
    ];

    protected $scene = [
        'add'    => ['goods_id'],
        'delete' => ['goods_id'],
    ];
}